﻿using System;
using System.Text;
using ProjScan.Tools;
using UnityEditor;
using UnityEngine.Video;

namespace ProjScan.RecordManager.AssetData
{
	// Token: 0x020002AF RID: 687
	internal class VideoClipAssetData : ImportAssetData<VideoClip, VideoClipImporter>
	{
		// Token: 0x060011D3 RID: 4563 RVA: 0x00053D18 File Offset: 0x00051F18
		public VideoClipAssetData(int assetPathId, string fileName, VideoClip videoClip, VideoClipImporter videoClipImporter) : base(assetPathId, fileName, videoClip, videoClipImporter)
		{
			bool flag = videoClipImporter == null;
			if (flag)
			{
				this.noImporter = true;
			}
			this.width = videoClip.width;
			this.height = videoClip.height;
			this.clipLength = videoClip.length;
		}

		// Token: 0x060011D4 RID: 4564 RVA: 0x00053D6C File Offset: 0x00051F6C
		public override string GetCSVHeader()
		{
			return "Name,DirID,Time,Width,Height";
		}

		// Token: 0x060011D5 RID: 4565 RVA: 0x00053D84 File Offset: 0x00051F84
		public override string GetInfo()
		{
			StringBuilder stringBuilder = new StringBuilder();
			stringBuilder.Append(ToolsHelper.QuoteString(this.fileName));
			stringBuilder.Append(',');
			stringBuilder.Append(this.assetPathId);
			stringBuilder.Append(',');
			stringBuilder.Append(this.clipLength);
			stringBuilder.Append(',');
			stringBuilder.Append(this.width);
			stringBuilder.Append(',');
			stringBuilder.Append(this.height);
			return stringBuilder.ToString();
		}

		// Token: 0x04000A9C RID: 2716
		public uint width;

		// Token: 0x04000A9D RID: 2717
		public uint height;

		// Token: 0x04000A9E RID: 2718
		public double clipLength;
	}
}
